package com.wulinbus.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.wulinbus.model.CreativeHelperModel;
import com.wulinbus.dao.creative_helper.CreativeHelperDao;
import com.wulinbus.service.CreativeHelperService;
@Service
public class CreativeHelperServiceImpl implements CreativeHelperService{
	
	@Resource
	private CreativeHelperDao creativeHelperDao;
	
	@Override
	public List<CreativeHelperModel> getCreativeHelperList(String keyword,
			Integer start, Integer pageSize) {
		// TODO Auto-generated method stub
		return creativeHelperDao.getCreativeHelperList(keyword, start, pageSize);
	}

	@Override
	public Integer creativeHelperCount(String keyword) {
		// TODO Auto-generated method stub
		return creativeHelperDao.creativeHelperCount(keyword);
	}

	@Override
	public void insert(CreativeHelperModel creativeHelper) {
		// TODO Auto-generated method stub
		creativeHelperDao.insert(creativeHelper);
	}

	@Override
	public Integer delete(Integer hid) {
		// TODO Auto-generated method stub
		return creativeHelperDao.delete(hid);
	}

	@Override
	public CreativeHelperModel getCreativeHelperByHid(Integer hid) {
		// TODO Auto-generated method stub
		return creativeHelperDao.getCreativeHelperByHid(hid);
	}


	@Override
	public void update(CreativeHelperModel creativeHelper) {
		// TODO Auto-generated method stub
		creativeHelperDao.update(creativeHelper);
	}

}
